home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-03 | 2.1 KB | 79 lines | [TEXT/MPS ] |
- // UMailableDocument.h
- // Copyright © 1984-96 by Apple Computer, Inc. All rights reserved.
-
- #ifndef __UMAILABLEDOCUMENT__
- #define __UMAILABLEDOCUMENT__
-
- #if qPowerTalk
-
- // MacApp
-
- #ifndef __UFILEBASEDDOCUMENT__
- #include "UFileBasedDocument.h"
- #endif
-
- #ifndef __UMAILABLE__
- #include "UMailable.h"
- #endif
-
- //----------------------------------------------------------------------------------------
- // Forward and external class declarations.
- //----------------------------------------------------------------------------------------
-
- class MScriptableObject;
- class TAppleEvent;
- class TObject;
-
- //----------------------------------------------------------------------------------------
- // CDSSpec represents an AOCE DSSpec structure. DSSpecs are used to represent most objects
- //----------------------------------------------------------------------------------------
-
- class TMailableDocument : public TFileBasedDocument, public MMailable
- {
-
- MA_DECLARE_CLASS;
-
- public:
-
- TMailableDocument();
- // Constructor
-
- void IMailableDocument(TFile* itsFile, OSType itsScrapType);
- // Initialization method for TMailableDocument.
-
- virtual void Changed(ChangeID theChange,
- TObject* changedBy);
- // Calls LetterContentChanged.
-
- virtual void Close(); //override
-
- virtual void DoMenuCommand(CommandNumber aCommandNumber);
- // Calls DoMailMenuCommand.
-
- virtual void DoSetupMenus();
- // Calls DoSetupMailMenus.
-
- virtual void DoAECreateElement(TAppleEvent* message,
- TAppleEvent* reply);
- // Calls DoAECreateMailer to create a cMailer.
-
- virtual long CountContainedObjects(DescType desiredType);
- // Calls CountContainedMailers to return the number of cMailers.
-
-
- virtual MScriptableObject* GetIndContainedObject(DescType desiredType,
- long index);
- // Calls GetIndContainedMailer to return a cMailer.
-
- virtual void DoScriptCommand(CommandNumber aCommandNumber, TAppleEvent* message,
- TAppleEvent* reply);
- // Calls DoAESend to handle the send event.
-
- virtual void SaveDocument(CommandNumber itsCommandNumber);
- // Try to save the document to disk
- };
-
- #endif // qPowerTalk
-
- #endif // __UMAILABLEDOCUMENT__
-